package com.xiaoxing.zhinenghuacangku_zhijian.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_zhijian.mvp.contract.QuYangGongNengXuanZeContract;
import com.xiaoxing.zhinenghuacangku_zhijian.mvp.model.QuYangGongNengXuanZeModel;


@Module
public class QuYangGongNengXuanZeModule {
    private QuYangGongNengXuanZeContract.View view;

    /**
     * 构建QuYangGongNengXuanZeModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public QuYangGongNengXuanZeModule(QuYangGongNengXuanZeContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    QuYangGongNengXuanZeContract.View provideQuYangGongNengXuanZeView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    QuYangGongNengXuanZeContract.Model provideQuYangGongNengXuanZeModel(QuYangGongNengXuanZeModel model) {
        return model;
    }
}